package com.heriparid.fragmentinjection;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;

public class BaseFragmentActivity extends FragmentActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		((App) getApplication()).injectMembers(this);		
	}
	
	protected <F extends Fragment> void injectFragment(F instance){
		((App) getApplication()).injectMembers(instance);
	}

}
